import request from '@/utils/request'

// 查询所有终审订单列表

export function listAllApplicant(pageNum,pageSize) {
  return request({
    url: '/finalTrial/listAllApplicant?pageNum='+pageNum+'&pageSize='+pageSize,
    method: 'get'
  })
}

export function viewDetails(clientId) {
  return request({
    url: '/viewDetails/findNewViewsDetails/'+clientId,
    method: 'get'
  })
}

export function newViewDetails() {
  return request({
    url: '/viewDetails/userInfo',
    method: 'get'
  })
}

export function getDetailInfo(clientId) {
  return request({
    url: '/finalTrial/getDetailInfo/'+clientId,
    method: 'get'
  })
}

export function getApplicantStatus(dictType,applicantStatus) {
  return request({
    url: '/finalTrial/getDetailInfo/'+dictType+'/'+applicantStatus,
    method: 'get'
  })
}

export function getHistoryList(clientId) {
  return request({
    url: '/finalTrial/getHistoryList/'+clientId,
    method: 'get'
  })
}

export function updateFinalTrialOrder(data) {
  return request({
    url: '/finalTrial/updateFinalTrialOrder',
    method: 'post',
    data
  })
}

export function searchClientProduction(data) {
  return request({
    url: '/finalTrial/searchClientProduction',
    method: 'post',
    data
  })
}